package hn.cch.spring.boot.message.request;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.annotation.PostConstruct;
import java.util.Date;

public class JsonRequest {

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date time;

    public Date getTime() {
        return time;
    }

    @PostConstruct
    public void setTime(Date time) {
        this.time = time;
    }
}
